package flyweightpattern;/*
* @auther 顶风少年 
* @mail dfsn19970313@foxmail.com
* @date 2019-08-02 21:43
* @notify 
* @version 1.0
*/
public class ConcreteFlyweight extends Flyweight {

    private Character instrinsicState = null;

    public ConcreteFlyweight(Character state){
        this.instrinsicState = state;
    }

    public void operation(String state){
        System.out.println("\nIntrinsic State="
        +instrinsicState+
                ",Extrinsic State="+state);
    }
}
